﻿using RearLivestock.Common.Domains.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RearLivestock.Common.Domains.hq
{
    /// <summary>
    /// 母猪断奶
    /// </summary>
    public class Ablactations : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int AblactationId { get; set; }

        /// <summary>
        /// 单据号
        /// </summary>
        [StringLength(100)]
        public string DocumentNumber { get; set; } = string.Empty;

        /// <summary>
        /// 流水号
        /// </summary>
        [StringLength(100)]
        public string SerialNumber { get; set; } = string.Empty;

        /// <summary>
        /// 负责人
        /// </summary>
        public string? AblactationPro { get; set; }

        /// <summary>
        /// 断奶日期
        /// </summary>
        public DateTime AblactationTime { get; set; }

        /// <summary>
        /// 耳号
        /// </summary>
        public int BasicInforId { get; set; }

        /// <summary>
        /// 种母重量
        /// </summary>
        public int AblactationWeight { get; set; }

        /// <summary>
        /// 断奶只数
        /// </summary>
        public string? AblactationNum { get; set; }

        /// <summary>
        /// 当前栋舍
        /// </summary>
        [StringLength(50)]
        public string CurrentBuilding { get; set; } = string.Empty;

        /// <summary>
        /// 当前栏位
        /// </summary>
        [StringLength(50)]
        public string Currentfield { get; set; } = string.Empty;

        /// <summary>
        /// 转入栋舍(外键)
        /// </summary>
        public int BedroomId { get; set; }

        /// <summary>
        /// 转入栏位(外键)
        /// </summary>
        public int FieldId { get; set; }

        /// <summary>
        /// 断奶窝重
        /// </summary>
        public string? AblactationSum { get; set; }

        /// <summary>
        /// 删除
        /// </summary>
        public bool IsDels { get; set; }
    }
}
